package com.lagou.edu.config;

import com.lagou.edu.service.GuavaCacheService;
import com.lagou.edu.service.GuavaRedisService;
import com.lagou.edu.service.impl.GuavaCacheServiceImpl;
import com.lagou.edu.service.impl.GuavaRedisServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
	@Bean
	public GuavaCacheService guavaCacheService() {
		return GuavaCacheServiceImpl.getInstance();
	}
	@Bean
	public GuavaRedisService redisCacheService() {
		return GuavaRedisServiceImpl.getInstance();
	}

}
